﻿@model InnoWeb.CEND.UI.MVC.Areas.Admin.Models.AccountModel

<!DOCTYPE html">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Cend Web Site</title>
    <link rel="stylesheet" href="~/Content/Admin/screen.css" type="text/css" media="screen"
        title="default" />
    <!--  jquery core -->
    <script src="~/Scripts/Admin/jquery-1.4.1.min.js" type="text/javascript"></script>

    <!-- Custom jquery scripts -->
    <script src="~/Scripts/Admin/custom_jquery.js" type="text/javascript"></script>

    <!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
    <script src="~/Scripts/Admin/jquery.pngFix.pack.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(document).pngFix();
        });
    </script>
</head>
<body id="login-bg">

    <!-- Start: login-holder -->
    <div id="login-holder">

        <!-- start logo -->
        <div id="logo-login">
            <a href="index.html">
                <img src="~/Images/Base/Logo.png" width="156" height="40" alt="" /></a>
        </div>
        <!-- end logo -->

        <div class="clear"></div>

        <!--  start loginbox ................................................................................. -->
        <div id="loginbox">

            <!--  start login-inner -->
            <div id="login-inner">
                @*@using (Html.BeginForm())
                {
                    @Html.AntiForgeryToken()
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <th>Username</th>
                            <td>
                               <input type="text" class="login-inp" />
                                @Html.TextBoxFor(m => m.UserName, new { style = "login-inp" })</td>
                        </tr>
                        <tr>
                            <th>Password</th>
                            <td>
                                <input type="password" value="************" onfocus="this.value=''" class="login-inp" />
                                @Html.PasswordFor(m => m.Password, new { style = "login-inp" })
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td valign="top">
                                <input type="checkbox" class="checkbox-size" id="login-check" />
                                <label for="login-check">Remember me</label>
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <input type="submit" class="submit-login" /></td>
                        </tr>
                    </table>
                }*@
                @if (Request.IsAuthenticated)
                {
                    <text>
                    Hello, @User.Identity.Name !
                <br />
                    Continue with @Html.ActionLink("Cend Admin Panel", "Index", "Home")
                    @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
                    {
                        @Html.AntiForgeryToken()
<a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
                    }
                    </text>
                }
                else
                {
                    <h2>Use log in credentials.</h2>
                    using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
                    { 
                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true)

                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <th>
                                @Html.LabelFor(m => m.User.UserName)
                            </th>
                            <td>
                                @Html.TextBoxFor(m => m.User.UserName, new { style = "login-inp" })
                            </td>
                        </tr>
                        <tr>
                            <th>
                                @Html.LabelFor(m => m.User.Password)
                            </th>
                            <td>
                                @Html.PasswordFor(m => m.User.Password, new { style = "login-inp" })
                            </td>
                        </tr>
                        <tr>
                            <th>
                                @Html.LabelFor(m => m.RememberMe)
                            </th>
                            <td>
                                @Html.CheckBoxFor(m => m.RememberMe, new { style = "checkbox-size" })
                            </td>
                        </tr>
                    </table>
                    <input type="submit" value="Log in" class="submit-login" />
                    }
                }
            </div>
            <!--  end login-inner -->
            <div class="clear"></div>
        </div>
        <!--  end loginbox -->

    </div>
    <!-- End: login-holder -->
</body>
</html>
